<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>
<script>
	// ES6声明对象简写
	let age = 12
	let name = "Amy"
	// 传统
	let person = {
		name: 'zhangsan',
		age: 23
	}
	let person1 = {name: name, age: age}
	console.log(person1)
	// ES6 简写
	let person2 = {name, age}
	console.log(person2) //{name: "Amy", age: 12}
</script>
</body>
</html>